/* window.onload=function(event){
        var button=document.getElementById("btn");
        button.onclick=function(event){
            var text = document.getElementById("text").value;
            console.log(window);
			console.log(document);
			console.log(00);
            window.clipboardData.setData("Text",text);
         
        };
    }; */


var btn = document.getElementById('btn');
var textArea = document.getElementById('text');

textArea.onresize = function () {
    alert('stop it!');
};
console.log(textArea);
btn.addEventListener('click', btnClick, false);

var btnClick = function () {
    console.log('btn click!');
};


var remove = document.getElementById('remove');

remove.onclick = function () {
    btn.removeEventListener('click', btnClick, false);
};


textArea.addEventListener('resize', function () {
    alert('stop it!');
});


textArea.onresize = function () {
    console.log('resize');
}

